//
import axios from 'axios'
export const getSysTime = (params) => {
    return new Promise((resolve, reject) => {
        axios({
            method: 'get',
            url: `${process.env.VUE_APP_SYSTIME}?pattern=${params}`,
            data: JSON.stringify(params),
            success: (res) => {
                console.log(res)
            }
        }).then(res => {
            if (res.data.code == 200) {
                resolve(res.data.data); //返回值

            } else {
                resolve(null); //返回值
            }
        })


    });
};
